Let V900 silently process 'G' tags as 'T' records when losing a DGPS fix.
authorrobertlipe <robertlipe@gmail.com>
Sun, 13 Jan 2013 20:38:16 +0000 (20:38 +0000)
committerrobertlipe <robertlipe@gmail.com>
Sun, 13 Jan 2013 20:38:16 +0000 (20:38 +0000)
gpsbabel/v900.c

index 7c894fcb77b929475552dfb2ba73e62c4cd6802d..405f084edf4eafa091ef2c74a57b3a53ba5102a7 100644 (file)
@@ -357,7 +357,11 @@ v900_read(void)
     track_add_wpt(track, wpt);
     if (line.bas.common.tag != 'T') {
       waypoint *wpt2;
-      assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'V');
+      // A 'G' tag appears to be a 'T' tag, but generated on the trailing
+      // edge of a DGPS fix as it decays to an SPS fix.  See 1/13/13 email
+      // thread on gpsbabel-misc with Jamie Robertson.
+      assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'G' ||
+             line.bas.common.tag == 'V');
       wpt2 = waypt_dupe(wpt);
       if (line.bas.common.tag == 'V') {        // waypoint with voice recording?
         char vox_file_name[sizeof(line.adv.vox)+5];